package com.example.demo.commons.r;
import lombok.Getter;
// 枚举类
@Getter
public enum Codes {
    SUCC(200,"成功"),
    FAIL(500,"失败"),
    RARAMS_ERROR(409,"参数校验异常"),
    USER_NOT_FOUND(411,"用户不存在"),
    USER_EXISTS(410,"用户已存在");

    private Integer code;
    private String msg;
    Codes(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }
}
